package com.mindainfo.groundwave.server.member.dao;

import com.mindainfo.groundwave.server.base.dao.IBaseDao;
import com.mindainfo.groundwave.server.member.bean.SysPermission;

import java.util.Collection;
import java.util.List;

/**
 * Created by MD-01 on 2017/5/15.
 */
public interface IPermissionDao extends IBaseDao<SysPermission> {

    List<SysPermission> getByIds(Collection<Integer> permissionIds);

    List<SysPermission> queryList(int start,int num,String name,Integer type);

    int queryListCount(String name,Integer type);

    SysPermission queryByName(String name);
    SysPermission queryBySign(String sign);

    List<SysPermission> queryAll();

    /**
     * 查询所有可用的权限
     * @return
     */
    List<SysPermission> queryUsableAll();
}
